package com.weiyi.biz.domain;

import java.util.Date;
import com.weiyi.common.annotation.Excel;
import com.weiyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 位移日志对象 weiyi_log
 *
 * @author gq
 * @date 2020-08-31
 */
public class WeiyiLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private Long deviceId;

    /** 电量 */
    @Excel(name = "电量")
    private Long batteryVal;

    /** 错误数量 */
    @Excel(name = "错误数量")
    private Long readErrNum;

    /** ID */
    @Excel(name = "ID")
    private String idValue;

    /** ADC */
    @Excel(name = "ADC")
    private Long adcValue;

    /** 传感器位移量 单位：毫米 */
    @Excel(name = "传感器位移量 单位：毫米")
    private Long offsetMm;

    /** 传感器位方向  1代表前进   0代表后退 */
    @Excel(name = "传感器位方向  1代表前进   0代表后退")
    private Long orientation;

    /** 操作时间 */
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd  HH:mm:ss")
    private Date operateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setDeviceId(Long deviceId)
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId()
    {
        return deviceId;
    }
    public void setBatteryVal(Long batteryVal)
    {
        this.batteryVal = batteryVal;
    }

    public Long getBatteryVal()
    {
        return batteryVal;
    }
    public void setReadErrNum(Long readErrNum)
    {
        this.readErrNum = readErrNum;
    }

    public Long getReadErrNum()
    {
        return readErrNum;
    }
    public void setIdValue(String idValue)
    {
        this.idValue = idValue;
    }

    public String getIdValue()
    {
        return idValue;
    }
    public void setAdcValue(Long adcValue)
    {
        this.adcValue = adcValue;
    }

    public Long getAdcValue()
    {
        return adcValue;
    }
    public void setOffsetMm(Long offsetMm)
    {
        this.offsetMm = offsetMm;
    }

    public Long getOffsetMm()
    {
        return offsetMm;
    }

    public Long getOrientation() {
        return orientation;
    }

    public void setOrientation(Long orientation) {
        this.orientation = orientation;
    }

    public void setOperateTime(Date operateTime)
    {
        this.operateTime = operateTime;
    }

    public Date getOperateTime()
    {
        return operateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("ID", getId())
            .append("deviceId", getDeviceId())
            .append("batteryVal", getBatteryVal())
            .append("readErrNum", getReadErrNum())
            .append("idValue", getIdValue())
            .append("adcValue", getAdcValue())
            .append("offsetMm", getOffsetMm())
            .append("orientation", getOrientation())
            .append("operateTime", getOperateTime())
            .toString();
    }
}
